﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SmartDeviceProject1
{
    public partial class Form0 : Form
    {
        public Form0()
        {
            
            InitializeComponent();
            this.inputPanel1.EnabledChanged += new EventHandler(panel1_EnableChanged);
        }

        private void panel1_EnableChanged(object sender, EventArgs e)
        {
            if (!this.inputPanel1.Enabled)
            {
                this.panel1.Dock = DockStyle.Fill;
                
                
            }
            else
            {
                this.panel1.Dock = DockStyle.None;
                this.panel1.Height = inputPanel1.VisibleDesktop.Height;
                Form f1 = new System.Windows.Forms.Form();
                
            }
        }

        private void label1_ParentChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            string username = this.textBox1.Text;
            string password = this.textBox2.Text;
            Form1 f = new Form1(username, password);
            f.Show();
            this.Hide();
            
        }
    }
}